package es.juanc.net;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class NetTest {

	/**
	 * @param args
	 * @throws UnknownHostException 
	 */
	public static void main(String[] args) throws UnknownHostException {
		
		InetAddress myAddress = InetAddress.getLocalHost();
				
		System.out.println( "InetAddress: " + myAddress );		
		System.out.println( "getHostName: " + myAddress.getHostName() );		
		System.out.println( "getHostAddress: " + myAddress.getHostAddress() );
		System.out.println( "getCanonicalHostName: " + myAddress.getCanonicalHostName() );
	}
}